package org.jeecg.modules.lab.items.record.service;


import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.lab.entrust.entity.LabEntrustItems;
import org.jeecg.modules.lab.entrust.entity.LabItemsRecordDevice;
import org.jeecg.modules.lab.items.vo.LabRecordDev;
import org.jeecg.modules.lab.items.vo.LabRecordNorm;

import java.util.List;

/**
 * @Description: 项目检测记录_设备器具信息
 * @Author: jeecg-boot
 * @Date: 2023-10-08
 * @Version: V1.0
 */
public interface ILabItemsRecordDeviceService extends IService<LabItemsRecordDevice> {


    /**
     * 封装检测设备数据
     *
     * @param entrustId
     * @param itemId
     * @return
     */
    List<LabItemsRecordDevice> handleDevData(String entrustId, String taskItemId, String itemId);

    /**
     * 更新设备仪器数据
     *
     * @param entrustId
     * @param itemId
     * @param recordDevList
     */
    void saveOrUpdate(String entrustId, String taskitemId, String itemId, List<LabItemsRecordDevice> recordDevList);

    /**
     * 根据委托id和项目id查询数据
     *
     * @param id
     * @return
     */
    List<LabItemsRecordDevice> byEntrustItemId(String id);

    /**
     * 插入项目设备信息
     * @param labEntrustItems
     */
    void insertDeviceData(LabEntrustItems labEntrustItems);

    void deleteByTaskId(String taskId);
}
